package com.wuhunyu.service;

import com.wuhunyu.commonutils.result.CommonResult;
import com.wuhunyu.entities.StatisticsDaily;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wuhunyu.query.DataQuery;

import java.util.Date;

/**
 * <p>
 * 网站统计日数据 服务类
 * </p>
 *
 * @author wuhunyu
 * @since 2021-01-27
 */
public interface StatisticsDailyService extends IService<StatisticsDaily> {

    /**
     * 统计用户数据并持久化到数据库
     * @param date
     * @return
     */
    public CommonResult countUser(Date date);

    /**
     * 返回数据给表格展示
     * @param dataQuery
     * @return
     */
    public CommonResult showData(DataQuery dataQuery);

}
